//
//  RHLocalBatteryStatisticsChartView.h
//  RuiHeAppApp
//
//  Created by Yan Chen on 2024/5/5.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@class DevChartModel;
@interface RHLocalBatteryStatisticsChartView : UIView
@property (nonatomic ,copy) void(^fullChartBlock)(void);

@property (nonatomic ,copy) void(^addTimeBlock)(void);

@property (nonatomic ,copy) void(^subTimeBlock)(void);

@property (nonatomic ,copy) void(^changeTimeBlock)(void);

@property (nonatomic ,copy) void(^selectTopToolBlock)(NSInteger index);

/// 图表
@property (nonatomic, strong) LineChartView *lineChartView;

@property (nonatomic ,strong) DevChartModel *chartModel;

@property (nonatomic, assign) BOOL isLandscape;//是否横屏

@property (nonatomic, copy) void(^highLightBlock)(ChartHighlight*);

- (instancetype)initWithFrame:(CGRect)frame type:(NSInteger)type;
- (instancetype)initWithFrame:(CGRect)frame type:(NSInteger)type colorList:(NSArray*)colorList;

-(void)setYAxisMaxWidth:(CGFloat)max_width;

-(void)highLightPosition:(ChartHighlight*)highLight;
@end

NS_ASSUME_NONNULL_END
